package com.bootcamp.servlet.mvc.dao;

import com.bootcamp.servlet.mvc.model.Custom;
import com.bootcamp.servlet.mvc.model.CustomWithInfo;

import javax.servlet.http.HttpSession;

public interface CustomDao {
    Integer register(Custom custom);
    /**
     *
     * @param custom:
     * @return java.lang.Integer   0：登录成功；1：查无此人；2：密码错误；3：程序错误
     * @date 11/8/2021 11:36
     */
    Integer login(CustomWithInfo customWithInfo);
    boolean storeCustomInfo(HttpSession session);
}
